#!/usr/bin/env python
#-*- coding: utf8 -*-

from __init__ import *
from dbcarta import *

root = Tk()

dbcarta = dbCarta(root, project=1)

dbcarta.loadCarta([('DotPort', "Hello test", "(20,10)", "Hello тест")], docenter=1)
dbcarta.loadCarta([('DotPort', "test1", "(2,19)", "тест1")], docenter=1)
dbcarta.loadCarta([('Area', "test2", "((-20,15),(-20,0),(-45,10),(-45,15))", "area", "(-20,15)")])
dbcarta.loadCarta([('Area', "test3", "((160.88,15),(230,0),(300,10),(207.78,18.9))", "area200", "(220,10)")], 1)
dbcarta.loadCarta( [('Route', '76.139','(7.2,53.35),(8.2,53.35)', '139', '(7.2,53.35)', )], 0 )

root.mainloop()